package com.gaoxizhe.ccc.exception;/**
 * @author : Mr.Gao
 * @date :   2019/9/22 21:37
 */

/**
 * @ClassName MyException
 * @Author Mr.Gao
 * @Date 2019/9/22 21:37
 * @Description TODO |
 */
public class MyException extends RuntimeException {
    private int status = 200;

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public MyException() {
    }

    public MyException(String message, int status) {
        super(message);
        this.status = status;
    }

    public MyException(String message) {
        super(message);
    }

    public MyException(String message, Throwable cause) {
        super(message, cause);
    }

    public MyException(Throwable cause) {
        super(cause);
    }

    public MyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
